<div class="header bgff">
<div class="w-main margin-auto h100 header-main">
  <div class="fr h100 header-link">
    <a  href="/user/index.html">
      首页
    </a>
    <router-link  :to="{ path: '/product/model-list', replace: true }">产品中心</router-link>
    <router-link  :to="{ path: '/aboutUs', replace: true }">关于我们</router-link>
    <template v-if="!isLogin">
      <a href="/user/login.html" class="login">登录</a>
      <a href="/user/register.html"  class="register">注册</a>
    </template>
    <template v-if="isLogin">
      <a  @click="logout" class="fr ml20">退出登录</a>
    <!--<router-link  :to="{ path: '/product/personCenter'}" class="setting-link fr ml20"></router-link>-->
      <div class="setting fr">
        <img src="../../images/tou.jpg">
        <span class="name fr" >{{name}}</span>
      </div>
    </template>
  </div>
</div>
</div>
